﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NutriFast
{
    public partial class Main : Form
    {
        public Main()
        {
            InitializeComponent();
        }

        private void agregarPacienteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UsuarioAdd ad = new UsuarioAdd();
            ad.MdiParent = this;
            ad.Show();
        }

        private void editarPacienteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UsuarioUpdate ad = new UsuarioUpdate();
            ad.MdiParent = this;
            ad.Show();
        }

        private void eliminarPacienteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UsuarioDel ad = new UsuarioDel();
            ad.MdiParent = this;
            ad.Show();
        }

        private void nuevaRecetaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RecetaAdd rc = new RecetaAdd();
            rc.MdiParent = this;
            rc.Show();
        }

        private void nuevaDietaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DietaSelPaciente dsp=new DietaSelPaciente();
            dsp.MdiParent = this;
            dsp.Show();
        }

        private void editarDietaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DietaDel dl = new DietaDel();
            dl.MdiParent = this;
            dl.Show();
        }

        private void agregarAlimentoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AlimentoAdd Aadd = new AlimentoAdd();
            Aadd.MdiParent = this;
            Aadd.Show();

        }

        private void editarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AlimentoUpdate Aup = new AlimentoUpdate();
            Aup.MdiParent = this;
            Aup.Show();
        }

        private void editarRecetaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RecetaDel del = new RecetaDel();
            del.MdiParent = this;
            del.Show();
        }

        private void acercaDeToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Acerca ac = new Acerca();
            ac.ShowDialog();
        }

        private void verAyudaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Ayuda ay = new Ayuda();
            ay.MdiParent = this;
            ay.Show();
        }

        private void acercaDeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void consultarTablaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AlimentoTabla AlimentoT = new AlimentoTabla();
            AlimentoT.MdiParent = this;
            AlimentoT.Show();
        }
    }
}
